package aug14;

public class BindingTest3 {
	public static void main(String[] args){
		ParentBindingTest3 p = new ChildBindingTest3();
		ChildBindingTest3 c = new ChildBindingTest3();
		
		System.out.println("p.x = "+p.x);
		p.method();
		System.out.println("c.x = "+c.x);
		c.method();
	}
}

class ParentBindingTest3{
	int x = 100;
	void method(){
		System.out.println("Parent Method");
	}
}

class ChildBindingTest3 extends ParentBindingTest3{
	int x = 200;
	void method(){
		System.out.println("x = "+x);
		System.out.println("super.x = "+super.x);
		System.out.println("this.x = "+this.x);
	}
}
